package com.rear.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.rear.dao.MessageTypeDao;
import com.rear.entity.MessageTypeEntity;
import com.rear.service.MessageTypeService;



@Service("messageTypeService")
public class MessageTypeServiceImpl implements MessageTypeService {
	@Autowired
	private MessageTypeDao messageTypeDao;
	
	@Override
	public MessageTypeEntity queryObject(Integer id){
		return messageTypeDao.queryObject(id);
	}
	
	@Override
	public List<MessageTypeEntity> queryList(Map<String, Object> map){
		return messageTypeDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return messageTypeDao.queryTotal(map);
	}
	
	@Override
	public void save(MessageTypeEntity messageType){
		messageTypeDao.save(messageType);
	}
	
	@Override
	public void update(MessageTypeEntity messageType){
		messageTypeDao.update(messageType);
	}
	
	@Override
	public void delete(Integer id){
		messageTypeDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		messageTypeDao.deleteBatch(ids);
	}

	@Override
	public List<MessageTypeEntity> typeList(Map<String, Object> map) {
		return messageTypeDao.typeList(map);
	}
	
}
